import request from "@/utils/request";

const baseURL = "/train/fission";

// 提交线索
export const submitClue = (params: ClueSubmitParam) =>
  request<Res<ClueSubmitResult>>({
    url: `${baseURL}/submit-clue`,
    method: "POST",
    data: params,
  });

// 查看历史线索
export const myClueList = (params: Pagination) =>
  request<Res<ListClueResult>>({
    url: `${baseURL}/page-my-clue`,
    method: "POST",
    data: params,
  });

// 查看邀请用户列表
export const invitedUserList = (keyword: String) =>
  request<Res<ListInvitedUserResult[]>>({
    url: `${baseURL}/list-my-invited-users`,
    method: "GET",
    params: {
      keyword,
    },
  });

// 我的业绩列表
export const performanceList = () => {
  return request<Res<ListPerformanceResult>>({
    url: `${baseURL}/get-my-performance`,
    method: "GET",
  });
};
